﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace WaterBill.DTO
{
    class DTO_Users
    {
        #region "Bien toan cuc"
        private int _UserId;
        private string _UserName;
        private string _FullName;
        private string _Address;
        private string _Phone;
        private int _PermissionId;
        private string _PassWord;
        private int _Status;
        #endregion
        #region "Thuoc tinh"
        public int UserId
        {
            get { return _UserId; }
            set { _UserId = value; }
        }
        public string UserName
        {
            get { return _UserName; }
            set { _UserName = value; }
        }
        public string FullName
        {
            get { return _FullName; }
            set { _FullName = value; }
        }
        public string Address
        {
            get { return _Address; }
            set { _Address = value; }
        }
        public string Phone
        {
            get { return _Phone; }
            set { _Phone = value; }
        }
        public int PermissionId
        {
            get { return _PermissionId; }
            set { _PermissionId = value; }
        }
        public string PassWord
        {
            get { return _PassWord; }
            set { _PassWord = value; }
        }
        public int Status
        {
            get { return _Status; }
            set { _Status = value; }
        }
        #endregion
        #region "Phuong thuc"
        public DTO_Users()
        {
            _UserId = 0;
            _UserName = string.Empty;
            _FullName = string.Empty;
            _Address = string.Empty;
            _Phone = string.Empty;
            _PermissionId = 0;
            _PassWord = string.Empty;
            _Status = 1;
        }
        public DTO_Users(DTO_Users obj)
        {
            this.UserId = obj.UserId;
            this.UserName = obj.UserName;
            this.FullName = obj.FullName;
            this.Address = obj.Address;
            this.Phone = obj.Phone;
            this.PermissionId = obj.PermissionId;
            this.PassWord = obj.PassWord;
            this.Status = obj.Status;
        }
        public DTO_Users(int UserId, string UserName, string FullName, string Address, string Phone, int PermissionId, string PassWord, int Status)
        {
            this.UserId = UserId;
            this.UserName = UserName;
            this.FullName = FullName;
            this.Address = Address;
            this.Phone = Phone;
            this.PermissionId = PermissionId;
            this.PassWord = PassWord;
            this.Status = Status;
        }
        #endregion
    }
}
